addEndpoint
( class in module jsPlumb
)
Adds an Endpoint
to a given element or elements.
el – {object} –
Element to add the endpoint to. Either an element id, a selector representing some element(s), or an array of either of these.
params – {object} –
Object containing Endpoint constructor arguments. For more information, see
referenceParams – {object} –
{object}
– The newly created Endpoint
, if el referred to a single element. Otherwise, an array of newly created Endpoint
s.